feat: add Solana file upload example #21
Open
+966
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A simple Solana dApp demonstrating file uploads to Shelby Protocol.
What's included
@shelby-protocol/solana-kit/reactAPItoken-gatedexample (create-solana-dapp) but without AnchorPackages used
@solana/react-hooks- wallet connection@shelby-protocol/solana-kit/react- storage account derivation@shelby-protocol/react- blob uploadsFiles
Note
Low Risk
Adds a new, self-contained example Next.js app and its dependencies; existing application logic is not modified beyond workspace lockfile updates.
Overview
Adds a new
apps/solana/file-uploadNext.js example dApp that connects a Solana wallet, derives a Shelby storage account via@shelby-protocol/solana-kit/react, and uploads a selected file viauseUploadBlobs(with status/error UI and an Explorer link).Includes the app’s supporting config/docs (
README.md,.env.example, Tailwind/Next/TS/ESLint configs, icon) and updatespnpm-lock.yamlto add the new package and resolve related dependency graph changes.Written by Cursor Bugbot for commit 1362ce2. This will update automatically on new commits. Configure here.